<?php
class RealTeam {
	private $name;
	CONST CORRECT_TEAM_NAME = 0;
	CONST INCORRECT_TEAM_NAME = 1;
	
	public function __construct($name){
		$this->setName($name);
	}
	
	public function getName(){
		return $this->name;
	}
	
	public function setName($newName){
		$this->name = $newName;
	}
	
	public function validationName(){
		if($this->name == null)
			return self::INCORRECT_TEAM_NAME;
		else 
			return self::CORRECT_TEAM_NAME;	
	}
}

?>